<?php

class Core_Form_Admin_Setting_Captcha extends Form
{
	function init()
	{

		$this -> addChild('text', 'recaptcha_publickey', array(
			'label' => 'ReCaptcha Public Key',
			'rules' => array('required'),
			'desc' => 'Enter your reCAPTCHA public key here.'
		));

		$this -> addChild('text', 'recaptcha_privatekey', array(
			'label' => 'ReCaptcha Private Key',
			'rules' => array('required'),
			'desc' => 'Enter your reCAPTCHA private key here.'
		));

		$this -> addChild('textarea', 'recaptcha_header', array(
			'label' => 'ReCaptcha Custom CSS',
			'desc' => 'You can modify the style of reCAPTCHA by adding JavaScript to the template header and by adding CSS to the same header or for each theme.<br/>More information can be found here.'
		));

		$this -> addChild('text', 'captcha_length', array(
			'label' => 'Character length',
			'value' => 6,
			'desc' => 'Limit how many characters will be displayed in the Captcha image.'
		));

		$this -> addChild('text', 'captcha_font', array(
			'label' => 'Font',
			'desc' => 'Select which TTF (True Type Font) you would like to use for your Captcha image.<br/>Note the setting captcha_font must be enabled in order to use this option.'
		));

		$this -> addChild('group', 'buttons');

		$this -> buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
